package com.多线程基础.三种实现方式.Callable接口实现;

import java.util.concurrent.Callable;

public class MyCallable implements Callable<Integer> {

    @Override
    public Integer call() throws Exception {
    int sum=0;
        for (int i = 0; i <100 ; i++) {
            sum=sum+i;
        }

        return sum;
    }
}
